package com.grass.p019lv.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.ImageView;
import android.widget.TextView;
import com.alibaba.android.arouter.launcher.ARouter;
import com.androidsa.bttsddka.R;
import com.androidx.p013lv.base.Constance;
import com.androidx.p013lv.base.interfaces.Key;

/* renamed from: com.grass.lv.dialog.SvipDialog */
public class SvipDialog extends Dialog {
    ImageView iv_cancel;
    TextView tv_go_vip = ((TextView) findViewById(R.id.tv_go_vip));

    public SvipDialog(Context context) {
        super(context, R.style.ForceUpdateAppDialog);
        setContentView(R.layout.dialog_svip);
        Window window = getWindow();
        WindowManager.LayoutParams attributes = window.getAttributes();
        attributes.gravity = 17;
        window.setAttributes(attributes);
        setCancelable(true);
        setCanceledOnTouchOutside(true);
        ImageView imageView = (ImageView) findViewById(R.id.iv_cancel);
        this.iv_cancel = imageView;
        imageView.setOnClickListener(new View.OnClickListener() {
            /* class com.grass.p019lv.dialog.SvipDialog.View$OnClickListenerC29801 */

            public void onClick(View view) {
                SvipDialog.this.dismiss();
            }
        });
        this.tv_go_vip.setOnClickListener(new View.OnClickListener() {
            /* class com.grass.p019lv.dialog.SvipDialog.View$OnClickListenerC29812 */

            public void onClick(View view) {
                ARouter.getInstance().build(Constance.VIP_CENTER_ACTIVITY).withString(Key.BACK_TITLE, "返回").navigation();
                SvipDialog.this.dismiss();
            }
        });
    }
}
